/**
This definition is used to run speedtests again
*/
namespace java hydrap2p.speedlistener
namespace py hydrap2p.speedlistener
namespace csharp hydrap2p.speedlistener

include "service.thrift"

service SpeedListener extends service.Service{
	/**
		Absorbs the given string, as fast as possible
		Uses the given length to validate that we received all of it
	*/
	void absorbString(1:i32 length, 2:string test),
	
	/**
		Absorbs the given byte array, as fast as possible
		Uses the given length to validate that we received all of it
	*/
	void absorbBytes(1:i32 length, 2:binary test),
	
	/**
		Runs an MD5 on the given byte array, and return it in hex-encoded string format
		Uses the given length to validate that we received all of it
	*/
	string md5(1:i32 length, 2:binary test),
	
	void stop(),
}
